package com.yixin.service.impl;

import com.yixin.entity.PageResult;
import com.yixin.entity.SmallCompany;
import com.yixin.mapper.SmallCompanyMapper;
import com.yixin.service.SmallCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class SmallCompanyServiceImpl implements SmallCompanyService {
    @Autowired
    private SmallCompanyMapper smallCompanyMapper;

    @Override
    public void add(SmallCompany smallCompany) {
        smallCompany.setIsDel(0);
        smallCompany.setCreateTime(LocalDateTime.now());
        smallCompany.setUpdateTime(LocalDateTime.now());
        smallCompanyMapper.add(smallCompany);
    }

    @Override
    public PageResult<SmallCompany> findPage(SmallCompany smallCompany) {
        return null;
    }
}
